// import ListMixin from './modules/list.js'
// import messageMixin from './modules/message'
// import locationMixin from './modules/location'

const modulesFiles = require.context('./modules', false, /\.js$/)

const modules = modulesFiles.keys().reduce((modules, modulePath) => {
  const moduleName = modulePath.replace(/^\.\/(.*)\.\w+$/, '$1')
  const value = modulesFiles(modulePath)
  modules[moduleName + 'Mixin'] = value.default
  return modules
}, {})
console.log(modules)
export default {
  ...modules
}
